/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TranSport;

/**
 *
 * @author Administrator
 */
import BUS.*;
import java.io.Serializable;
import java.util.Vector;
public class Transport implements Serializable {
   public String Sql ;
   public String Mesage ; // thong bao tu client neu quit la ngung ko connect den server 
   // neu server thong bao la loi neu cau querry ko dung 
   public Bus_Table  tableKQ;
   public String dataBaseName;
   
   public String errorMessage;
   
   public Login login;
   
   public Vector<StringDataBase> stringDataBase;
    
   public Transport()
   {
       Sql = "";
       Mesage = "";
       tableKQ = null;
       dataBaseName = "";
       errorMessage = "";
       login = new Login();
       stringDataBase = new Vector<StringDataBase>();
   }
    public Transport (String sql, String message, Bus_Table table,String database)
    {
        this.Sql = sql;
        this.Mesage = message ;
        this.tableKQ = table;
        this.dataBaseName = database;
    }
    public Transport(Login log)
    {
        this.login = log;
    }
    public void Copy(Transport tran)
    {
        this.Mesage = tran.Mesage;
        this.Sql = tran.Sql;
        this.tableKQ = tran.tableKQ;
        this.dataBaseName = tran.dataBaseName;
        this.errorMessage = tran.errorMessage;
        this.login.Copy(tran.login);
        this.dataBaseName = tran.dataBaseName;
    }
}
